import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import * as action from '../actions/UserActions'
import LoginForm from '../components/login/LoginForm'

const mapStateToProps = (state, ownProps) => ({
	user: state.user
})

const mapDispatchToProps = dispatch => bindActionCreators(action, dispatch)

const MyLoginForm = connect(mapStateToProps, mapDispatchToProps)(LoginForm)

export default MyLoginForm